package com.a12extendsdemo7;

public class Test {
    public static void main(String[] args) {
        Manager m = new Manager("01", "zhansan", 15000, "8000");
        System.out.println(m.getId() + " " + m.getName() + " " + m.getSalary() + " " + m.getBouns());
        m.eat();
        m.work();
        Cook c = new Cook("02", "lisi", 10000);
        System.out.println(c.getId() + " " + c.getName() + " " + c.getSalary());
        c.eat();
        c.work();
    }
}
